package com.jdk8.parameter_01;

import java.util.List;

public class AppleSystem {

    public static void main(String[] args) {
        AppleQuery appleQuery = new AppleQuery();
        List<Apple> apples = appleQuery.applesData();
        AppleModel appleModel = new AppleModel();
        List<Apple> appleList = appleModel.filterApples("green", new AppleColorStrategyImpl(), apples);
        for (Apple apple : appleList) {
            System.out.println(apple);
        }
        System.out.println("-----------------------");
        appleModel.prettyPrintApple(apples,new AppleFancyFormatterImpl());
    }
}
